package com.deyuans.uitls;

import lombok.Data;
import org.springframework.core.annotation.Order;

@Data
public class R {
    private Integer code;
    private Order data;
    private String msg;

    public R ok(Order data){
        this.msg="操作成功";
        this.code=0;
        this.data=data;
        return new R();
    }

    public R  elsess(){
        this.msg="操作有误！";
        this.code=1;
        return new R();
    }
}
